import { BaseItem } from "../common/BaseItem";
import { CDPetItem } from "../../cache/CDItem/CDPetItem";
//class PetCDItem
    
    export  class PetCDItem extends BaseItem
    {
        constructor()
        {
            super();
            this.init();
            mouseChildren = false;
            mouseEnabled = false;
            return;
        }

        public get recallCdTime(): CDPetItem
        {
            return this._recallCdTime;
        }

        public set recallCdTime(arg1: CDPetItem)
        {
            this._recallCdTime = arg1;
            freezingEffect.cdTime = arg1;
            leftTimeCd.cdTime = arg1;
            leftTimeCd.x = -50;
            leftTimeCd.y = -8;
            return;
        }

        /* internal  */init(): void
        {
            this.maskSprite = new Object /* flash.display.Sprite */();
            this.maskSprite.mouseEnabled = false;
            this.maskSprite.mouseChildren = false;
            this.maskSprite.graphics.beginFill(16777215, 1);
            this.maskSprite.graphics.drawCircle(0, 0, 23);
            this.addChild(this.maskSprite);
            this.mask = this.maskSprite;
            return;
        }

        public clearEffect(): void
        {
            freezingEffect.clearEffect();
            leftTimeCd.clearLeftTime();
            return;
        }

        /* internal */ /* var */_recallCdTime: CDPetItem;

        /* internal */ /* var */maskSprite: Object /* flash.display.Sprite */;
    }
